# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=py3-urwid_readline
_pkgname=urwid_readline
pkgver=0.13
pkgrel=1
pkgdesc="text input widget for urwid that supports readline shortcuts"
url="https://github.com/rr-/urwid_readline"
arch="noarch"
license="MIT"
depends="python3 py3-urwid"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner"
#options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/rr-/urwid_readline/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD"/build/lib py.test-3 -v
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
49087b2b0e47d6adba317941b6be99d7d61fd66ae28fa2ed89730c24cc04b8fa4ce20cb8eb35ebab56f838491432684bb8892463439dcd5d06d087b509182d3d  py3-urwid_readline-0.13.tar.gz
"
